{% load i18n %}
{% load cropping %}
{% load dajaxice_templatetags %}

{% block title %}{% blocktrans with profile.user.username as username %}{{ username }}'s profile.{% endblocktrans %}{% endblock title %}
{% block page_title %}{% endblock page_title %}

{% block content %}
  <div class="white-box">
    <div id="details">
      {% block profile_details %}
        <dt>Avatar</dt>
        <dd>
            {% if profile.avatar %}
            <img src="{% cropped_thumbnail profile avatar_cropping %}">
            {% else %}
            <img class="mugshot" src="{{ profile.get_mugshot_url }}" alt="{% trans "Your mugshot" %}" />
            {% endif %}
        </dd>
        <dl>
          {% block profile_definition_list %}
            {% if profile.user.get_full_name %}
              <dt>{% trans "Name" %}</dt>
              <dd>{{ profile.user.get_full_name }}</dd>
            {% endif %}
            {% if profile.user.email and not hide_email %}
              <dt>{% trans "Email" %}</dt>
              <dd>{{ profile.user.email }}</dd>
            {% endif %}
            {% if profile.age %}
              <dt>{% trans "Age" %}</dt>
              <dd>{{ profile.age }}</dd>
            {% endif %}
            {% if profile.website %}
              <dt>{% trans "Website" %}</dt>
              <dd>{{ profile.website|urlize }}</dd>
            {% endif %}
            {% if profile.location %}
              <dt>{% trans "Location" %}</dt>
              <dd>{{ profile.location }}</dd>
            {% endif %}
            {% if profile.about_me %}
              <dt>{% trans "About me" %}</dt>
              <dd>{{ profile.about_me }}</dd>
            {% endif %}
          {% endblock profile_definition_list %}
        </dl>
      {% endblock profile_details %}
    </div>
  </div>
  
{% endblock content %}

